package com.hollowlatte.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hollowlatte.manage.entity.Course;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Hollow Latte
 * @since 2021-05-05
 */
@Repository
public interface CourseMapper extends BaseMapper<Course> {
    /**
     * 查找指定学期的课程
     *
     * @param term 学期数
     * @return 课程列表
     */
    List<Course> selectByTerm(int term);
}
